New Version of jQuery Dropdown Checkbox List Plugin
One of the users of the dropdown-check-list plugin added a patch containing an update to take into consideration the optgroup tags, part of the select HTML element. After playing around with it and adding a few modifications, I uploaded a new version to the codebase that has this feature:
The above image corresponds to the following html code:
<select id="s6" multiple="multiple"> <optgroup label="Letters"> <option>A</option> <option>B</option> <option selected="selected">C</option> </optgroup> <optgroup label="Numbers"> <option>1</option> <option>2</option> <option selected="selected">3</option> </optgroup> </select>
The optgroup tags of the HTML select element marked with multiple attribute are inserted in the drop down container with their own css class ui-dropdownchecklist-group. The options that are part of an optgroup get a ui-dropdownchecklist-indent css class for custom indentation.
The new version can be downloaded from the google code project.
Hope to find this new feature usefull.
17 comments